package cn.edu.hdu.instantMessage;

public class InstantMessageDemo {
 
	public static void main(String[] args){  
		AbstractInstantMessage a= InstantMessageProducer.getInstant_mess("VideoInstantMessage");
		VideoInstantMessage b=a.getVideoInstant_mess("Video2");
		AbstractInstantMessage d= InstantMessageProducer.getInstant_mess("PhotoInstantMessage");
		PhotoInstantMessage c=d.getPhotoInstant_mess("Photo2");
		//b.publish("dasdas");
		Observer user1=new DingUser("Lily",b,c);
		user1.update();
	 }  
}

    
